package com.hsurosy.infrastructure.persistent.dao;

import com.hsurosy.infrastructure.persistent.po.Strategy;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Hsu琛君珩
 * @Date 2024-10-14 18:57
 * @Description 抽奖策略 DAO
 * @Version: v1.0.0
 */
@Mapper
public interface IStrategyDao {

    /**
     * 获取所有抽奖策略的列表
     *
     * @return
     * Strategy(1L, 100001L, "抽奖策略A", "rule_blacklist,rule_weight", ...)
     * Strategy(2L, 100002L, "抽奖策略B", "rule_luck_award", ...)
     */
    List<Strategy> queryStrategyList();

    /**
     * 根据策略 ID 查询指定的策略信息
     *
     * @param strategyId 100001
     * @return Strategy(1L, 100001L, "抽奖策略A", "rule_blacklist,rule_weight", ...)
     */
    Strategy queryStrategyByStrategyId(Long strategyId);

}
